Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <script> function deleteRow(id,row) { document.getElementById(id).deleteRow(row); } </script> </head> <body> <table id="myTable" style="border: 1px solid black"> <tr> <td>Row 1</td> <td><input type="button" value="Delete" onclick="deleteRow('myTable',0)"></td> </tr> <tr> <td>Row 2</td> <td><input type="button" value="Delete" onclick="deleteRow('myTable',1)"></td> </tr> <tr> <td>Row 3</td> <td><input type="button" value="Delete" onclick="deleteRow('myTable',2)"></td> </tr> </table> </body> <!-- Mirrored from www.w3schools.com/js/tryit.asp?filename=tryjs_dom_table_deleterow by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:37:11 GMT --> </html>
Result:
Try it Yourself - © w3schools.com